package com.study.model.user;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.Data;
import java.util.Date;
/*
* 角色与权限的中间表（多对多）
* */
@Data
@TableName("sys_role_permission")
@Schema(description = "角色与权限关系表")
@Entity
public class SysRolePermission{
    private static final long serialVersionUID = 1L;

    @jakarta.persistence.Id
    @Schema(description = "id")
    @TableId(type = IdType.AUTO)
    @org.springframework.data.annotation.Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;


    @TableField("role_id")
    private Long roleId;

    @TableField("permission_id")
    private Long permissionId;
}
